package cn.com.yiqi.wsc.dao.item;

import cn.com.artemis.framework.base.commons.persistence.CrudDao;
import cn.com.yiqi.wsc.entity.item.ItemTypeProperty;
import cn.com.yiqi.wsc.entity.item.ItemTypePropertyAdminDTO;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 何刚
 * @ClassName: ${class}
 * @Description: TODO
 * @date 2017/3/6
 */
@Repository
public interface ItemTypePropertyDao extends CrudDao<ItemTypeProperty> {

    /**
     * 根据商品类型获取商品属性
     *
     * @param itemTypeId
     * @return
     */
    List<ItemTypePropertyAdminDTO> getItemTypePropertyByItemTypeId(@Param("itemTypeId") Integer itemTypeId);

    /**
     * 根据seq查询类型，isAll
     *
     * @param ids
     * @return
     */
    List<ItemTypePropertyAdminDTO> getItemTypePropertyByItemTypeSeq(@Param("ids") List<Integer> ids);


}